package com.ruoyi.quartz.task;


import com.snowRemovingUser.domain.TRoadManage;
import com.snowRemovingUser.service.ITRoadManageService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * 报表自动发布
 */
// @Component("release")
public class PredictionReleaseTask {


    @Autowired
    private ITRoadManageService roadManageService;




    public void start(){


        TRoadManage tRoadManage = new TRoadManage();
        tRoadManage.setParentId(0L);
        List<TRoadManage> tRoadManages = roadManageService.selectTRoadManageList(tRoadManage);


        for (TRoadManage road : tRoadManages) {

            TRoadManage roadChild = new TRoadManage();
            roadChild.setParentId(road.getId());
            List<TRoadManage> roadChildList = roadManageService.selectTRoadManageList(roadChild);

            TRoadManage landMark1 = roadChildList.get(0);
            TRoadManage landMark2 = roadChildList.get(1);














        }

















    }





















}
